export default {
  namespaced: true,
  state: {
    configs: {},
    loading: false
  },
  mutations: {
    SET_CONFIGS (state, configs) {
      Object.assign(state.configs, configs)
    },
    REMOVE (state, key) {
      delete state.configs[key]
    },
    SHOW_LOADING (state) {
      state.loading = true
    },
    HIDE_LOADING (state) {
      state.loading = false
    }
  }
}
